/*
* Poppy Game Engine - https://pgetemplate.googlecode.com/svn/
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2008 Poppy
*/

inline CDirectCtrl::CDirectCtrl( BYTE flag )
{
	m_dFlag = flag;
	m_dCount = 1;
	m_dCycle = 0;
	m_bIsinited = false;
}

inline CDirectCtrl::~CDirectCtrl()
{
	DestoryCtrl();
}

inline void CDirectCtrl::SetBufferCount( int count )
{
	m_dCount = count;
}

inline void CDirectCtrl::SetSamplingCycle( int cycle )
{
	m_dCycle = cycle;
}

inline const LPCTRL_DATA CDirectCtrl::GetStateBuffer()
{
	return &m_sData;
}
